﻿namespace KinonekoSoftware.Foundation.UI.Controls
{
    public class Menu : ForestMenuBase
    {
        protected override Control CreateContainerForItemOverride(object item, int index, object recycleKey) => new MenuItem();
    }

    public class ContextMenu : ForestContextMenuBase
    {
        protected override Control CreateContainerForItemOverride(object item, int index, object recycleKey) => new MenuItem();
    }

    public class HybridContextMenu : ForestContextMenuBase
    {
        protected override bool NeedsContainerOverride(object item, int index, out object recycleKey)
        {
            return NeedsContainer<MenuItem>(item, out recycleKey);
        }

        protected override Control CreateContainerForItemOverride(object item, int index, object recycleKey) => new MenuItem();
    }

    public class MenuItem : ForestMenuItemBase
    {

    }
}